package com.huawei.hwid.core.b.a;

import android.os.Bundle;
import android.util.SparseIntArray;
import com.huawei.hwid.core.d.b.e;

public class b {
    private static final SparseIntArray a = new SparseIntArray();
    private static final SparseIntArray b = new SparseIntArray();

    static {
        b.put(70002057, 70002003);
        b.put(70002059, 70002001);
        b.put(70002060, 70002001);
    }

    public static int a(Bundle bundle, int i) {
        if (bundle == null || i == 0) {
            e.b("HttpStatusCode", "bundle or errorCode is null", true);
            return i;
        } else if (200 != bundle.getInt("responseCode") || b.get(i) == 0) {
            return i;
        } else {
            i = b.get(i);
            e.e("HttpStatusCode", "transform errorCode = ", true);
            return i;
        }
    }
}
